﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RestSharp;
using Ymatou.API.Common;
using Ymatou.ServiceCenter;
using YmatouSeller.NoticeAPI.Model.Response;

namespace YmatouSeller.NoticeAPI.Model.Request
{
    [Resource("sellernotice.iapi.ymatou.com", "api/QueryNotice/GetSellerAllNoticeList", Method.GET, ParameterBuildType.Json)]
    public class GetSellerAllNoticeListRequest : BaseRequestModel<GetSellerAllNoticeListResponse>
    {
        public int SellerId { get; set; }
        public int Total { get; set; }

        public int NoticeType { get; set; }

        public override string ApiName
        {
            get { return "api/QueryNotice/GetSellerAllNoticeList"; }
        }
        public override void Validate()
        {
            const string errCode = "-1";
            if (SellerId == 0)
                throw new Ymatou.API.Common.BussniessException(errCode, "买手id不能为0");
            base.Validate();
        }
        /// <summary>
        /// HttpPost
        /// </summary>
        public override bool HttpGet
        {
            get { return true; }
        }
    }
}
